﻿using TMS_BackEnd.MyDbContexts;
using Volo.Abp.DependencyInjection;

namespace TMS_BackEnd.IRepository.He
{
    [Dependency(ServiceLifetime.Singleton)]
    public class SysUserRepository : ISysUserRepository
    {
        public MyDbContext myDbContext { get; set; }

        public bool GetLogin(string uname, string password)
        {
            return myDbContext.Sys_users.Count(e => e.User_name == uname && e.Password == password) > 0;
        }
    }
}
